{% extends "base_generic.html" %}
{% block content %}
<div class="container">
    <h2>作者列表</h2>
    {% for author in authors %}
        <div class="card">
            <a href="{% url 'author-detail' author.pk %}"><strong>{{ author }}</strong></a>
        </div>
    {% empty %}
        <div class="card">暂无作者。</div>
    {% endfor %}
    <a href="{% url 'author-create' %}" class="btn">添加作者</a>
</div>
{% endblock %}
